package cn.jiyun.dao;

import cn.jiyun.entity.Student;
import cn.jiyun.vo.StudentVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper{

    public List<StudentVo> findAll();

    public void insertStudent(Student student);

    public void updateStudent(Student student);

    public void deleteStudent(Integer sid);

    @Select("select * from student where sid=#{sid}")
    public Student findStudentById(@Param("sid") Integer sid);
}
